<%@ page language="java" contentType="text/html;charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<head>
    <jsp:include page="../common/common.jsp"/>
</head>
<body class="page-header-fixed">
<jsp:include page="../common/header.jsp"/>
<div class="clearfix">
</div>
<div class="page-container">
    <div class="page-sidebar-wrapper"><jsp:include page="../common/menu.jsp"/></div>
    <div class="page-content-wrapper">
        <div class="page-content">
            <div class="row">
                <div class="col-md-12">
                    <form class="form-horizontal form-row-seperated" id="form" method="post" action="${path}/faxes/save">
                        <div class="portlet box purple">
                            <div class="portlet-title">
                                <div class="caption">
                                    <i class="fa fa-shopping-cart"></i>传真电报详细内容
                                </div>
                                <div class="actions btn-set">
                                    <a href="javascript:history.go(-1);" class="btn default"><i
                                            class="fa fa-angle-left"></i> 返回</a>
                                   <c:choose>
									       <c:when test="${data.topTime=='0'||data.topTime==null}">
									              <button type="button" onclick="saveDz()" class="btn  btn-success"><i class="fa icon-flag"></i> 顶置 </button>
									       </c:when>
									       <c:otherwise>
									             <button type="button" onclick="saveRmdz()" class="btn btn-info"><i class="fa  icon-repeat"></i> 取消顶置 </button>
									       </c:otherwise>
									</c:choose>
                                    <button type="button" onclick="save()" class="btn blue"><i class="fa fa-check"></i> 保存
                                    </button>
                                </div>
                            </div>
                            <div class="portlet-body">
                                <div class="tabbable">
                                    <div class="tab-content no-space">
                                        <div class="tab-pane active" id="tab_general">
                                            <div class="form-body">
                                                <div class="form-group">
                                                    <label class="col-md-2 control-label">标题:
                                                        <span class="required">*</span>
                                                    </label>

                                                    <div class="col-md-5">
                                                        <input type="text" id="title" name="title"
                                                               class="form-control measure-input" datatype="*1-80"
                                                               value="${data.title}"/>
                                                    </div>
                                                    <div class="col-md-5">
                                                        &nbsp;可输入<b><span id="title_len">80</span></b> 个字符   &nbsp;
                                                		<label><input type="radio"  id="isNews"  onclick="radioChangeNews(this);" value="1"  />是否带news图标</label>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-md-2 control-label">公开属性:
                                                        <span class="required">*</span>
                                                    </label>
                                                    <div class="col-md-3">
                                                        <select name="status" class="form-control">
                                                            <option value="7" <c:if test="${7== data.status }">selected="selected" </c:if> >不予公开</option>
                                                            <option value="5" <c:if test="${5== data.status }">selected="selected" </c:if> >主动公开</option>
                                                            <option value="6" <c:if test="${6== data.status }">selected="selected" </c:if> >依申请公开</option>
                                                            <option value="0" <c:if test="${0== data.status }">selected="selected" </c:if> >无效</option>
                                                        </select>
                                                    </div>
                                                </div>
                                               <%--  <div class="form-group">
                                                    <label class="col-md-2 control-label">签收:
                                                        <span class="required">*</span>
                                                    </label>
                                                    <div class="col-md-3">
                                                        <select name="signStatus" class="form-control">
                                                            <option value="0" <c:if test="${0== data.signStatus }">selected="selected" </c:if> >请签收</option>
                                                            <option value="1" <c:if test="${1== data.signStatus }">selected="selected" </c:if> >签收</option>
                                                        </select>
                                                    </div>
                                                </div> --%>
                                                <div class="form-group">
                                                    <label class="col-md-2 control-label">发布时间:
                                                    </label>

                                                    <div class="col-md-5">
                                                        <input id="falseCreateTime" name="falseCreateTime" type="text"
                                                               class="form-control tags medium"
                                                               value="${data.falseCreateTime}"/>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-md-2 control-label">URL:
                                                    </label>

                                                    <div class="col-md-5">
                                                        <input id="isURL" name="isURL" type="text"
                                                               class="form-control tags medium"
                                                               value="${data.isURL}"/>
                                                    </div>
                                                </div>
<!--                                                 <input type="hidden" name="author" class="form-control" -->
<!--                                                        value="admin"/> -->

                                                <div class="form-group">
                                                    <label class="col-md-2 control-label">内容:
                                                        <span class="required">*</span>
                                                    </label>

                                                    <div class="col-md-8">
                                                        <input id="context" type="hidden" name="context">
                                                        <script id="editor" type="text/plain"
                                                                style="height:500px;">${data.context}</script>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-md-2 control-label">签收单位:
                                                        <span class="required">*</span>
                                                    </label>
<!--                                                     <style type="text/css">  -->
<!-- </style>  -->
<script type="text/javascript">
var cnt = 49;
var radiostate = 0;
function radioclick(a){
    if (radiostate == 1){
        document.getElementById('raid'+a).checked = false;
        radiostate = 0;
    }else{
        document.getElementById('raid'+a).checked = true;
        radiostate = 1;
    }   
}
function radioChangeNews(em){
	var v=$(em).val();
	if(v=="1"){
		 document.getElementById('isNews').checked = false;
		   $(em).val("0");	
	       $("#zisNews").val("0");	
	}else{
		 document.getElementById('isNews').checked = true;
		  $(em).val("1");
		  $("#zisNews").val("1");
	}
	
}
function radioclickAll(a){
    if (radiostate == 1){
        document.getElementById('raida'+a).checked = false;
        if(a=='1'){
        	for(var i1=1;i1<=17;i1++){
        		if(i1!=2 && i1!=9)//去掉机要秘书科，将指挥调度科换做指挥中心
        		document.getElementById('raid'+i1).checked = false;
        	}
        }
        if(a=='2'){
        	for(var i2=18;i2<=36;i2++){
        		document.getElementById('raid'+i2).checked = false;
        	}
        }
        if(a=='3'){
        	for(var i3=37;i3<=42;i3++){
        		document.getElementById('raid'+i3).checked = false;
        	}
        }
        if(a=='4'){
        	for(var i4=43;i4<=49;i4++){
        		document.getElementById('raid'+i4).checked = false;
        	}
        }
        radiostate = 0;
    }else{
        document.getElementById('raida'+a).checked = true;
        if(a=='1'){
        	for(var i1=1;i1<=17;i1++){
        		if(i1!=2 && i1!=9){
        		document.getElementById('raid'+i1).checked = true;
        		switch(i1){
        		case 1:
        			document.getElementById('raid'+i1).value = 'zhzx';
        			break;
        		case 2:
        			document.getElementById('raid'+i1).value = 'jymsk';
        			break;
        		case 3:
        			document.getElementById('raid'+i1).value = 'kjxxk';
        			break;
        		case 4:
        			document.getElementById('raid'+i1).value = 'zhk';
        			break;
        		case 5:
        			document.getElementById('raid'+i1).value = 'gbk';
        			break;
        		case 6:
        			document.getElementById('raid'+i1).value = 'xjk';
        			break;
        		case 7:
        			document.getElementById('raid'+i1).value = 'lgk';
        			break;
        		case 8:
        			document.getElementById('raid'+i1).value = 'pxjd';
        			break;
        		case 9:
        			document.getElementById('raid'+i1).value = 'gh';
        			break;
        		case 10:
        			document.getElementById('raid'+i1).value = 'fwh';
        			break;
        		case 11:
        			document.getElementById('raid'+i1).value = 'bafwzgs';
        			break;
        		case 12:
        			document.getElementById('raid'+i1).value = 'sjjck';
        			break;
        		case 13:
        			document.getElementById('raid'+i1).value = 'kgssk';
        			break;
        		case 14:
        			document.getElementById('raid'+i1).value = 'jwbzb';
        			break;
        		case 15:
        			document.getElementById('raid'+i1).value = 'crjglk';
        			break;
        		case 16:
        			document.getElementById('raid'+i1).value = 'jvw';
        			break;
        		case 17:
        			document.getElementById('raid'+i1).value = 'jgdw';
        			break;
        		}
        		}
        	}
        }
        if(a=='2'){
        	for(var i2=18;i2<=36;i2++){
        		document.getElementById('raid'+i2).checked = true;
        		switch(i1){
        		case 18:
        			document.getElementById('raid'+i1).value = 'gbzd';
        			break;
        		case 19:
        			document.getElementById('raid'+i1).value = 'fkzd';
        			break;
        		case 20:
        			document.getElementById('raid'+i1).value = 'jzzd';
        			break;
        		case 21:
        			document.getElementById('raid'+i1).value = 'zazd';
        			break;
        		case 22:
        			document.getElementById('raid'+i1).value = 'xzzd';
        			break;
        		case 23:
        			document.getElementById('raid'+i1).value = 'jgzd';
        			break;
        		case 24:
        			document.getElementById('raid'+i1).value = 'xjzd';
        			break;
        		case 25:
        			document.getElementById('raid'+i1).value = 'jszczd';
        			break;
        		case 26:
        			document.getElementById('raid'+i1).value = 'jdzd';
        			break;
        		case 27:
        			document.getElementById('raid'+i1).value = 'jjzd';
        			break;
        		case 28:
        			document.getElementById('raid'+i1).value = 'gsjjzd';
        			break;
        		case 29:
        			document.getElementById('raid'+i1).value = 'wazd';
        			break;
        		case 30:
        			document.getElementById('raid'+i1).value = 'tjzd';
        			break;
        		case 31:
        			document.getElementById('raid'+i1).value = 'fzzd';
        			break;
        		case 32:
        			document.getElementById('raid'+i1).value = 'jwdczd';
        			break;
        		case 33:
        			document.getElementById('raid'+i1).value = 'xfzd';
        			break;
        		case 34:
        			document.getElementById('raid'+i1).value = 'jwc';
        			break;
        		case 35:
        			document.getElementById('raid'+i1).value = 'cggjfj';
        			break;
        		case 36:
        			document.getElementById('raid'+i1).value = 'jcfj';
        			break;
        		}
        	}
        }
        if(a=='3'){
        	for(var i3=37;i3<=42;i3++){
        		document.getElementById('raid'+i3).checked = true;
        		switch(i1){
        		case 37:
        			document.getElementById('raid'+i1).value = 'xcfj';
        			break;
        		case 38:
        			document.getElementById('raid'+i1).value = 'fcfj';
        			break;
        		case 39:
        			document.getElementById('raid'+i1).value = 'gxfj';
        			break;
        		case 40:
        			document.getElementById('raid'+i1).value = 'xdfj';
        			break;
        		case 41:
        			document.getElementById('raid'+i1).value = 'djxqfj';
        			break;
        		case 42:
        			document.getElementById('raid'+i1).value = 'ylzfj';
        			break;
        		}
        	}
        }
        if(a=='4'){
        	for(var i4=43;i4<=49;i4++){
        		document.getElementById('raid'+i4).checked = true;
        		switch(i1){
        		case 43:
        			document.getElementById('raid'+i1).value = 'xzgafj';
        			break;
        		case 44:
        			document.getElementById('raid'+i1).value = 'zysgaj';
        			break;
        		case 45:
        			document.getElementById('raid'+i1).value = 'ycsgaj';
        			break;
        		case 46:
        			document.getElementById('raid'+i1).value = 'lhksgaj';
        			break;
        		case 47:
        			document.getElementById('raid'+i1).value = 'nzxgaj';
        			break;
        		case 48:
        			document.getElementById('raid'+i1).value = 'bkxgaj';
        			break;
        		case 49:
        			document.getElementById('raid'+i1).value = 'gcxgaj';
        			break;
        		}
        	}
        }
        radiostate = 1;
    }   
}
</script>
                                                    <div class="col-md-3" style="width:620px;">
                                                     <div style="float:left;">
                                                    	<span style="float:left;color:red;font-size:16px;">局直科室：【全选】</span>
                                                    	<label><input type="radio" id="raida1" onclick="radioclickAll(1);" name="assocGrops[0]" value="jzks" <c:if test="${data.assocGrops[0]=='jzks'}">checked="true"</c:if>></label>
                                                    	<div style="float:left;margin-left:60px;">
                                                    		<label><input type="radio" id="raid1" onclick="radioclick(1);" name="associations[0]" value="zhzx" <c:if test="${data.associations[0]=='zhzx'}">checked="true"</c:if>>指挥中心</label>
<!-- 	                                                    	<label><input type="radio" id="raid1" onclick="radioclick(1);" name="associations[0]" value="zhddk" <c:if test="${data.associations[0]=='zhddk'}">checked="true"</c:if>>指挥中心</label> -->
<!-- 	                                                    	<label><input type="radio" id="raid2" onclick="radioclick(2);" name="associations[1]" value="jymsk" <c:if test="${data.associations[1]=='jymsk'}">checked="true"</c:if>>机要秘书科</label> -->
	                                                    	<label><input type="radio" id="raid3" onclick="radioclick(3);" name="associations[2]" value="kjxxk" <c:if test="${data.associations[2]=='kjxxk'}">checked="true"</c:if>>科技信息科</label>
	                                                    	<label><input type="radio" id="raid4" onclick="radioclick(4);" name="associations[3]" value="zhk" <c:if test="${data.associations[3]=='zhk'}">checked="true"</c:if>>综合科</label>
	                                                    	<label><input type="radio" id="raid5" onclick="radioclick(5);" name="associations[4]" value="gbk" <c:if test="${data.associations[4]=='gbk'}">checked="true"</c:if>>干部科</label>
	                                                    	<label><input type="radio" id="raid6" onclick="radioclick(6);" name="associations[5]" value="xjk" <c:if test="${data.associations[5]=='xjk'}">checked="true"</c:if>>宣教科</label>
	                                                    	<label><input type="radio" id="raid7" onclick="radioclick(7);" name="associations[6]" value="lgk" <c:if test="${data.associations[6]=='lgk'}">checked="true"</c:if>>老干科</label>
	                                                    	<label><input type="radio" id="raid8" onclick="radioclick(8);" name="associations[7]" value="pxjd" <c:if test="${data.associations[7]=='pxjd'}">checked="true"</c:if>>培训基地</label>
	                                                    	<!--  <label><input type="radio" id="raid9" onclick="radioclick(9);" name="associations[8]" value="gh" <c:if test="${data.associations[8]=='gh'}">checked="true"</c:if>>工会</label>-->
	                                                    	<label><input type="radio" id="raid10" onclick="radioclick(10);" name="associations[9]" value="fwh" <c:if test="${data.associations[9]=='fwh'}">checked="true"</c:if>>妇委会</label>
	                                                    	<label><input type="radio" id="raid11" onclick="radioclick(11);" name="associations[10]" value="bafwzgs" <c:if test="${data.associations[10]=='bafwzgs'}">checked="true"</c:if>>保安服务总公司</label>
	                                                    	<label><input type="radio" id="raid12" onclick="radioclick(12);" name="associations[11]" value="sjjck" <c:if test="${data.associations[11]=='sjjck'}">checked="true"</c:if>>审计监察科</label>
	                                                    	<label><input type="radio" id="raid13" onclick="radioclick(13);" name="associations[12]" value="kgssk" <c:if test="${data.associations[12]=='kgssk'}">checked="true"</c:if>>控告申诉科</label>
	                                                    	<label><input type="radio" id="raid14" onclick="radioclick(14);" name="associations[13]" value="jwbzb" <c:if test="${data.associations[13]=='jwbzb'}">checked="true"</c:if>>警务保障部</label>
	                                                    	<label><input type="radio" id="raid15" onclick="radioclick(15);" name="associations[14]" value="crjglk" <c:if test="${data.associations[14]=='crjglk'}">checked="true"</c:if>>出入境管理支队</label>
	                                                    	<label><input type="radio" id="raid16" onclick="radioclick(16);" name="associations[15]" value="jvw" <c:if test="${data.associations[15]=='jvw'}">checked="true"</c:if>>纪委</label>
	                                                    	<label><input type="radio" id="raid17" onclick="radioclick(17);" name="associations[16]" value="jgdw" <c:if test="${data.associations[16]=='jgdw'}">checked="true"</c:if>>机关党委</label>
                                                        </div>
                                                     </div>
                                                     
                                                     <div style="float:left;">
                                                    	<span style="float:left;color:red;font-size:16px;">直属支队分局：【全选】</span>
                                                    	<label><input type="radio" id="raida2" onclick="radioclickAll(2);" name="assocGrops[1]" value="直属支队分局" <c:if test="${data.assocGrops[1]=='直属支队分局'}">checked="true"</c:if>></label>
                                                    	<div style="float:left;margin-left:60px;">
	                                                    	<label><input type="radio" id="raid18" onclick="radioclick(18);" name="associations[17]" value="gbzd" <c:if test="${data.associations[17]=='gbzd'}">checked="true"</c:if>>国保支队</label>
	                                                    	<label><input type="radio" id="raid19" onclick="radioclick(19);" name="associations[18]" value="fkzd" <c:if test="${data.associations[18]=='fkzd'}">checked="true"</c:if>>反恐支队</label>
	                                                    	<label><input type="radio" id="raid20" onclick="radioclick(20);" name="associations[19]" value="jzzd" <c:if test="${data.associations[19]=='jzzd'}">checked="true"</c:if>>经侦支队</label>
	                                                    	<label><input type="radio" id="raid21" onclick="radioclick(21);" name="associations[20]" value="zazd" <c:if test="${data.associations[20]=='zazd'}">checked="true"</c:if>>治安内保支队（食药侦支队）</label>
	                                                    	<label><input type="radio" id="raid22" onclick="radioclick(22);" name="associations[21]" value="xzzd" <c:if test="${data.associations[21]=='xzzd'}">checked="true"</c:if>>刑侦支队</label>
	                                                    	<label><input type="radio" id="raid23" onclick="radioclick(23);" name="associations[22]" value="jgzd" <c:if test="${data.associations[22]=='jgzd'}">checked="true"</c:if>>监管支队</label>
	                                                    	<label><input type="radio" id="raid24" onclick="radioclick(24);" name="associations[23]" value="xjzd" <c:if test="${data.associations[23]=='xjzd'}">checked="true"</c:if>>巡警支队</label>
	                                                    	<label><input type="radio" id="raid25" onclick="radioclick(25);" name="associations[24]" value="jszczd" <c:if test="${data.associations[24]=='jszczd'}">checked="true"</c:if>>技侦支队</label>
	                                                    	<label><input type="radio" id="raid26" onclick="radioclick(26);" name="associations[25]" value="jdzd" <c:if test="${data.associations[25]=='jdzd'}">checked="true"</c:if>>禁毒支队</label>
	                                                    	<label><input type="radio" id="raid27" onclick="radioclick(27);" name="associations[26]" value="jjzd" <c:if test="${data.associations[26]=='jjzd'}">checked="true"</c:if>>交警支队</label>
	                                                    	<label><input type="radio" id="raid28" onclick="radioclick(28);" name="associations[27]" value="gsjjzd" <c:if test="${data.associations[27]=='gsjjzd'}">checked="true"</c:if>>高警支队</label>
	                                                    	<label><input type="radio" id="raid29" onclick="radioclick(29);" name="associations[28]" value="wazd" <c:if test="${data.associations[28]=='wazd'}">checked="true"</c:if>>网安支队</label>
	                                                    	<label><input type="radio" id="raid30" onclick="radioclick(30);" name="associations[29]" value="tjzd" <c:if test="${data.associations[29]=='tjzd'}">checked="true"</c:if>>特警支队</label>
	                                                    	<label><input type="radio" id="raid31" onclick="radioclick(31);" name="associations[30]" value="fzzd" <c:if test="${data.associations[30]=='fzzd'}">checked="true"</c:if>>法制支队</label>
	                                                    	<label><input type="radio" id="raid32" onclick="radioclick(32);" name="associations[31]" value="jwdczd" <c:if test="${data.associations[31]=='jwdczd'}">checked="true"</c:if>>警务督察支队</label>
	                                                    	<label><input type="radio" id="raid33" onclick="radioclick(33);" name="associations[32]" value="xfzd" <c:if test="${data.associations[32]=='xfzd'}">checked="true"</c:if>>消防支队</label>
	                                                    	<label><input type="radio" id="raid34" onclick="radioclick(34);" name="associations[33]" value="jwc" <c:if test="${data.associations[33]=='jwc'}">checked="true"</c:if>>警卫处</label>
	                                                    	<label><input type="radio" id="raid35" onclick="radioclick(35);" name="associations[34]" value="cggjfj" <c:if test="${data.associations[34]=='cggjfj'}">checked="true"</c:if>>城管公交分局</label>
	                                                    	<label><input type="radio" id="raid36" onclick="radioclick(36);" name="associations[35]" value="jcfj" <c:if test="${data.associations[35]=='jcfj'}">checked="true"</c:if>>机场分局</label>
                                                      	</div>
                                                     </div>
                                                     
                                                     <div style="float:left;">
                                                    	<span style="float:left;color:red;font-size:16px;">城区分局：【全选】</span>
                                                    	<label><input type="radio" id="raida3" onclick="radioclickAll(3);" name="assocGrops[2]" value="城区分局" <c:if test="${data.assocGrops[2]=='城区分局'}">checked="true"</c:if>></label>
                                                    	<div style="float:left;margin-left:60px;">
	                                                    	<label><input type="radio" id="raid37" onclick="radioclick(37);" name="associations[36]" value="xcfj" <c:if test="${data.associations[36]=='xcfj'}">checked="true"</c:if>>襄城分局</label>
	                                                    	<label><input type="radio" id="raid38" onclick="radioclick(38);" name="associations[37]" value="fcfj" <c:if test="${data.associations[37]=='fcfj'}">checked="true"</c:if>>樊城分局</label>
	                                                    	<label><input type="radio" id="raid39" onclick="radioclick(39);" name="associations[38]" value="gxfj" <c:if test="${data.associations[38]=='gxfj'}">checked="true"</c:if>>高新分局</label>
	                                                    	<label><input type="radio" id="raid40" onclick="radioclick(40);" name="associations[39]" value="xdfj" <c:if test="${data.associations[39]=='xdfj'}">checked="true"</c:if>>襄东分局</label>
	                                                    	<label><input type="radio" id="raid41" onclick="radioclick(41);" name="associations[40]" value="djxqfj" <c:if test="${data.associations[40]=='djxqfj'}">checked="true"</c:if>>东津新区分局</label>
	                                                    	<label><input type="radio" id="raid42" onclick="radioclick(42);" name="associations[41]" value="ylzfj" <c:if test="${data.associations[41]=='ylzfj'}">checked="true"</c:if>>鱼梁洲分局（重点工程分局）</label>
                                                      	</div>
                                                     </div>
                                                     
                                                     <div style="float:left;">
                                                    	<span style="float:left;color:red;font-size:16px;">县市区分局：【全选】</span>
                                                    	<label><input type="radio" id="raida4" onclick="radioclickAll(4);" name="assocGrops[3]" value="县市区分局" <c:if test="${data.assocGrops[3]=='县市区分局'}">checked="true"</c:if>></label>
                                                    	<div style="float:left;margin-left:60px;">
	                                                    	<label><input type="radio" id="raid43" onclick="radioclick(43);" name="associations[42]" value="xzgafj" <c:if test="${data.associations[42]=='xzgafj'}">checked="true"</c:if>>襄州公安分局</label>
	                                                    	<label><input type="radio" id="raid44" onclick="radioclick(44);" name="associations[43]" value="zysgaj" <c:if test="${data.associations[43]=='zysgaj'}">checked="true"</c:if>>枣阳市公安局</label>
	                                                    	<label><input type="radio" id="raid45" onclick="radioclick(45);" name="associations[44]" value="ycsgaj" <c:if test="${data.associations[44]=='ycsgaj'}">checked="true"</c:if>>宜城市公安局</label>
	                                                    	<label><input type="radio" id="raid46" onclick="radioclick(46);" name="associations[45]" value="lhksgaj" <c:if test="${data.associations[45]=='lhksgaj'}">checked="true"</c:if>>老河口市公安局</label>
	                                                    	<label><input type="radio" id="raid47" onclick="radioclick(47);" name="associations[46]" value="nzxgaj" <c:if test="${data.associations[46]=='nzxgaj'}">checked="true"</c:if>>南漳县公安局</label>
	                                                    	<label><input type="radio" id="raid48" onclick="radioclick(48);" name="associations[47]" value="bkxgaj" <c:if test="${data.associations[47]=='bkxgaj'}">checked="true"</c:if>>保康县公安局</label>
                                                      		<label><input type="radio" id="raid49" onclick="radioclick(49);" name="associations[48]" value="gcxgaj" <c:if test="${data.associations[48]=='gcxgaj'}">checked="true"</c:if>>谷城县公安局</label>
                                                      	</div>
                                                     </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="portlet-title">
                                <div class="actions btn-set">
                                    <a href="javascript:history.go(-1);" class="btn default"><i
                                            class="fa fa-angle-left"></i> 返回</a>
                                      <c:choose>
									       <c:when test="${data.topTime=='0'||data.topTime==null}">
									              <button type="button" onclick="saveDz()" class="btn  btn-success"><i class="fa icon-flag"></i> 顶置 </button>
									       </c:when>
									       <c:otherwise>
									             <button type="button" onclick="saveRmdz()" class="btn btn-info"><i class="fa  icon-repeat"></i> 取消顶置 </button>
									       </c:otherwise>
									</c:choose>
                                    <button type="button" onclick="save()" class="btn blue"><i class="fa fa-check"></i> 保存
                                    </button>
                                </div>
                            </div>
                        </div>
                        <input type="hidden" id="id" name="id" value="${data.id}">
                        <input type="hidden" name="topTime"  id="topTime"  value="${data.topTime==null?0:data.topTime}"  /> 
                        <input type="hidden" name="readTimes"  id="readTimes"  value="${data.readTimes}"  /> 
                      	<c:if test="${data.signStatus!=null}">
                        <input type="hidden" name="signStatus"  id="signStatus"  value="${data.signStatus}"  /> 
                        </c:if>
                        <input type="hidden" id="zisNews"  name="isNews"  value="${data.isNews==null?1:data.isNews}" /> 
                        
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<jsp:include page="../common/footer.jsp"/>
<script type="text/javascript" src="${path}/assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js"></script>
<script type="text/javascript" src="${path}/assets/plugins/jquery-inputmask/jquery.inputmask.bundle.min.js"></script>
<script type="text/javascript" src="${path}/assets/plugins/jquery.input-ip-address-control-1.0.min.js"></script>
<script type="text/javascript" src="${path}/assets/plugins/jquery.pwstrength.bootstrap/src/pwstrength.js"></script>
<script type="text/javascript" src="${path}/assets/scripts/biz/ajaxfileupload.js"></script>
<script type="text/javascript" src="${path}/assets/plugins/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="${path}/assets/plugins/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" src="${path}/assets/plugins/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="${path}/assets/plugins/district/linkagesel-min.js"></script>
<script type="text/javascript" src="${path}/operate/js/topDz.js"></script>
<script>
    var operType = '${operType}';
    var editor, form;

        UE.getEditor('editor');
        form = $("form").Validform({
            tiptype: function (msg, o, cssctl) {
                //msg：提示信息;
                //o:{obj:*,type:*,curform:*}, obj指向的是当前验证的表单元素（或表单对象），type指示提示的状态，值为1、2、3、4， 1：正在检测/提交数据，2：通过验证，3：验证失败，4：提示ignore状态, curform为当前form对象;
                //cssctl:内置的提示信息样式控制函数，该函数需传入两个参数：显示提示信息的对象 和 当前提示的状态（既形参o中的type）;
                if (!o.obj.is("form")) {//验证表单元素时o.obj为该表单元素，全部验证通过提交表单时o.obj为该表单对象;
                    var objtip = o.obj.siblings(".Validform_checktip");
                    cssctl(objtip, o.type);
                    objtip.text(msg);
                } else {
                    var objtip = o.obj.find("#msgdemo");
                    cssctl(objtip, o.type);
                    objtip.text(msg);
                }
            },
            postonce: true,
            showAllError: true,
            callback: function () {
                save();
            }
        });
    function save() {
        var context = UE.getEditor('editor').getContent();
        if (!/[\w\W]+/.test(context)) {
            alert("内容不能为空");
            return;
        }
        $("#context").val(context);
//         $("#form").submit();
      //form提交 
   	   App.ajax(_path + "/faxes/save", $("form").serialize(), function (data) {
               if (data.statusCode == 200) {
               App.bubble(200, "更新成功！");
           	window.setTimeout(function(){
           		   window.close();//修改成功，弹出新页面，直接关闭
                   },400); 
               }else if (data.statusCode == 100){
               	App.bubble(100, "添加成功！");
               	window.setTimeout(function(){
                    	history.go(-1);//返回上一级
                    },400); 
               } else {
                  App.bubble(500, "信息失败！");
                     // alert("信息失败")
               }
           });
        
    }
    //radio 判断是否选中
    $(function(){
    	var isn=$("#zisNews").val()
    	if(isn=='1'){
    		$("#isNews").attr("checked","true");
    	}else if(isn=='0'){
    		$("#isNews").removeAttr("checked");
    	}
    });
</script>
</body>
</html>